package com.example.adminuser.dao;

import com.example.adminuser.entity.AdminUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminUserMapper {
    int deleteByPrimaryKey(Long adminUserId);

    int insert(AdminUser record);

    int insertSelective(AdminUser record);

    AdminUser selectByPrimaryKey(Long adminUserId);

    int updateByPrimaryKeySelective(AdminUser record);

    int updateByPrimaryKey(AdminUser record);

    AdminUser selectAdminByUserName(String adminUserUsername);

    List<AdminUser> selectAdminUserListPage(@Param("offset") int offset,@Param("limit") int limit);

    int selectAdminUserPageCount();

}